package com.unknowpupil.oauth2.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;


/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("tb_user_role")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TbUserRole implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户 ID
     */

    @ApiModelProperty(value = "用户 ID")
    private Long userId;
    /**
     * 角色 ID
     */

    @ApiModelProperty(value = "角色 ID")
    private Long roleId;

}
